

<form id="LeagueForm" name="LeagueForm" method="post" action="" runat="server">
<input name="league_id" type="hidden" id="league_id" runat="server">
<input name="page" type="hidden" id="page" runat="server">
<hr>
<core:optional for="msg">
	<span class="message" runat="server"> {$msg} </span>
</core:optional>
<table width="100%" border="0" align="center" cellspacing="2" cellpadding="3">
<tr><td colspan="2" class="textlogin" style="font-size:10pt;left-pedding:20;padding-bottom:5;">Note: Fields marked with asterick (<font color="red">*</font>) are obligatory</td></tr>
    <tr align="left">
    	<td class="whiteheader_center">
    		<core:optional for="league_id">
    			Edit the league (ID: {$league_id})
            </core:optional>
            <core:default for="league_id">
            	Create a new league
            </core:default>
         </td>
         <td class="whiteheader">
            <a href="/{$#app_name}/myprofile/index.htm"> My Profile </a> &nbsp;
           	<html:link url="/">All leagues </html:link>
          </td>
     </tr>

    <core:default for="supress_errors">
    <ERRORSUMMARY id='Summary' runat="server">
        <tr valign="top">
          <td width="{$width}">Errors: &nbsp;</td>
          <td class="left">
          	<FONT COLOR="RED">
          		<list:ITEM> {$ErrorMessage} &nbsp; </list:ITEM>
          	</FONT>
          </td>
        </tr>
     </ERRORSUMMARY>
     </core:default>

     <tr>
     	<td class="small" colspan="2">
     		<core:optional for="league_id">
     			Enter your changes to the information below to edit an existing content item.
     			When you are finished, press the Save button.
            </core:optional>
     	</td>
     </tr>

     <core:optional for="league_id">
     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="date_added" runat="server">Date Posted:</label>
       </td>
       <td class="form_field">
         <span class="small"> {$date_added} </span>
       </td>
     </tr>
     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="author" runat="server">Author:</label>
       </td>
       <td class="form_field">
         <span class="small"> {$author_show} </span>
       </td>
     </tr>
     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="url" runat="server">URL:</label>
       </td>
       <td class="form_field">
         <span class="small"> /{$#app_name}/pub.league.php?id={$league_id} </span>
         <span class="small"> Use this URL to reference the league profile from the left menu </span>
       </td>
     </tr>
     </core:optional>

     <core:optional for="staff_user">
     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="published" runat="server">Approved/Published</label>
       </td>
       <td class="form_field">
         <input name="published" type="checkbox" id="published" value="1" runat="server">
       </td>
     </tr>
     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="premium" runat="server">Premium content</label>
       </td>
       <td class="form_field">
         <input name="premium" type="checkbox" id="premium" value="1" runat="server">
       </td>
     </tr>

     </core:optional>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="category_id" runat="server">Sport category</label>
       </td>
       <td class="form_field">
      	 <select name='category_id' id='category_id' runat="server">
	 	 </select>
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="category2_id" runat="server">Community category</label>
       </td>
       <td class="form_field">
      	 <select name='category2_id' id='category2_id' runat="server">
	 	 </select>
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="event" runat="server">Event</label>
       </td>
       <td class="form_field">
         <select name='event' id='event' runat="server">
	 	 </select>
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="name" runat="server">
      	 	<font color="red">*</font>Event name:
      	 </label>
       </td>
       <td class="form_field">
         <input name="name" type="text" id="name" size="64" displayname="Name">
       </td>
     </tr>



     <!--Organization -->
     <tr valign="top">
       <td colspan="2" width="{$width}" class="left">
         <table width="350" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td colspan="3" class="left">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="1%">
                      	<img src="/{$#app_name}/images/borders/boxcnlt.gif" width="21" height="20"></td>
                      <td valign="top" background="/{$#app_name}/images/borders/titlebg.gif" class="left" width="100%">
						<b>&nbsp; Organization </b></td>
                      <td valign="bottom" bgcolor="#FFFFFF" align="right" width="1%">
						<img src="/{$#app_name}/images/borders/boxcnrt2.gif" width="6" height="6"></td>
                    </tr>
                </table>
              	</td>
              </tr>
              <tr>
                <td background="/{$#app_name}/images/borders/newsboxside.gif" width="1">
					<img src="/{$#app_name}/images/1x1.gif" width="1" height="1">
		    	</td>
                <td class="left">
                	<table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td><img src="/{$#app_name}/images/1x1.gif" width="10" height="1"></td>
                      <td class="left">
                      	<table width="100%"  border="0" cellspacing="0" cellpadding="0">

                          <tr valign="top">
       						<td class="form_label" width="{$width}">
      	 						<label for="org_title" runat="server">
      	 							Name:
      	 						</label>
       						</td>
       						<td class="form_field">
         						<input name="org_title" type="text" id="org_title" size="64">
       						</td>
     					  </tr>

                          <tr valign="top">
       						<td class="form_label" width="{$width}" nowrap>
      	 						<label for="org_address" runat="server">
      	 							Street address:
      	 						</label>
       						</td>
       						<td class="form_field">
         						<input name="org_address" type="text" id="org_address" size="64">
       						</td>
     					  </tr>

                          <tr valign="top">
       						<td class="form_label" width="{$width}">
      	 						<label for="org_city" runat="server">
      	 							City:
      	 						</label>
       						</td>
       						<td class="form_field">
         						<input name="org_city" type="text" id="org_city" size="32">
       						</td>
     					  </tr>

                          <tr valign="top">
       						<td class="form_label" width="{$width}">
      	 						<label for="org_state" runat="server">
      	 							State:
      	 						</label>
       						</td>
       						<td class="form_field">
                              <select name='org_state' id='org_state' runat="server">
	 						  </select>
       						</td>
     					  </tr>

                          <tr valign="top">
       						<td class="form_label" width="{$width}">
      	 						<label for="org_zip" runat="server">
      	 							Zip:
      	 						</label>
       						</td>
       						<td class="form_field">
         						<input name="org_zip" type="text" id="org_zip" size="9" displayname="Organization zip">
       						</td>
     					  </tr>

                          <tr valign="top">
       						<td class="form_label" width="{$width}">
      	 						<label for="org_phone" runat="server">
      	 							Phone:
      	 						</label>
       						</td>
       						<td class="form_field">
         						<input name="org_phone" type="text" id="org_phone" size="32" displayname="Organization phone">
       						</td>
     					  </tr>

                          <tr valign="top">
       						<td class="form_label" width="{$width}">
      	 						<label for="org_email" runat="server">
      	 							Email:
      	 						</label>
       						</td>
       						<td class="form_field">
         						<input name="org_email" type="text" id="org_email" size="32" displayname="Organization email">
       						</td>
     					  </tr>



                      	</table>
                      </td>
                      <td><img src="/{$#app_name}/images/1x1.gif" width="10" height="1"></td>
                    </tr>
                	</table>
                </td>
                <td width="1" background="/{$#app_name}/images/borders/newsboxside.gif" class="left">
					<img src="/{$#app_name}/images/1x1.gif" width="1" height="1">
				</td>
              </tr>
              <tr>
                <td colspan="3" class="left">
                	<table width="100%" border="0" cellspacing="0" cellpadding="0">
                    	<tr>
                      		<td width="11"><img src="/{$#app_name}/images/borders/boxcnlb.gif" width="11" height="13"></td>
                      		<td background="/{$#app_name}/images/borders/boxhlb.gif">&nbsp;</td>
                      		<td width="11">
                      			<img src="/{$#app_name}/images/borders/boxcnrb.gif" width="11" height="13">
                      		</td>
                    	</tr>
                	</table>
                </td>
              </tr>

         </table>
       </td>
     </tr>


     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="age" runat="server">
      	 	Age group:
      	 </label>
       </td>
       <td class="form_field">
         <select name='age' id='age' runat="server">
	 	 </select>
       </td>
     </tr>



     <tr valign="top">
       <td class="form_label" colspan="1">
      	 <label runat="server">Additional information:</label>
       </td>
     </tr>

     <tr valign="top">
       <td class="form_field" colspan="2">
      	 <textarea name="additional" id="additional" runat="server" cols="80" rows="5"> </textarea>
       </td>
     </tr>


     <tr>
      <td class="whiteheader_center" colspan="2">&nbsp;</td>
     </tr>

	 <tr>
      <td>&nbsp;</td>
      <td class="form_field">

      		<core:default for="league_id">
      			<input type="submit" name="create" value="Create" runat="server">
            </core:default>
            <core:optional for="league_id">
      			<input type="submit" name="save" value="Save" runat="server">
                <!--<input type="submit" name="delete" value="Delete" runat="server">-->
            </core:optional>
            <input type="submit" name="clean" value="Clean" runat="server">
            <input type="submit" name="leagues" value="Back to leagues" runat="server">
            <core:optional for="league_id">
                <br>
                <a href="/{$#app_name}/pub.league.php?league_id={$league_id}" target="__blank">
                  Preview
                </a>
                <span class="small">
                	Before hitting Preview, make sure that you saved the team information
      	 		</span>
            </core:optional>
      </td>
</tr>

</table>
</form>